package com.yunxi.service.localService.impl.sto;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.page.PageHelperPlus;
import com.yunxi.sto.pojo.DailyReportVO;
import com.yunxi.sto.pojo.MonthlyReportVO;
import org.springframework.stereotype.Service;
import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.sto.ReportPartnerDayMapper;
import com.yunxi.model.sto.ReportPartnerDay;
import com.yunxi.service.localService.sto.ReportPartnerDayService;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Guan
 * @since 2020-03-19
 */
@Service
public class ReportPartnerDayServiceImpl extends ServiceImplPlus<ReportPartnerDayMapper, ReportPartnerDay> implements ReportPartnerDayService {

    @Override
    public PageInfo<DailyReportVO> dayPage(DailyReportVO dailyReportVO, Integer pageNum, Integer pageSize) {
        PageHelperPlus.startPage(pageNum,pageSize);
        List<DailyReportVO> list = baseMapper.dayPage(dailyReportVO);
        PageInfo<DailyReportVO> pageInfo = new PageInfo<>(list);
        return pageInfo;
    }
}
